$OpenBSD: patch-zebra_kernel_socket_c,v 1.12 2016/03/22 12:57:54 jca Exp $
--- zebra/kernel_socket.c.orig	Wed Mar 16 00:17:17 2016
+++ zebra/kernel_socket.c	Mon Mar 21 01:19:29 2016
@@ -202,7 +202,7 @@ const struct message rtm_type_str[] =
   {RTM_REDIRECT, "RTM_REDIRECT"},
   {RTM_MISS,     "RTM_MISS"},
   {RTM_LOCK,     "RTM_LOCK"},
-#ifdef OLDADD
+#ifdef RTM_OLDADD
   {RTM_OLDADD,   "RTM_OLDADD"},
 #endif /* RTM_OLDADD */
 #ifdef RTM_OLDDEL
@@ -242,7 +242,9 @@ static const struct message rtm_flag_str[] =
 #ifdef RTF_CLONING
   {RTF_CLONING,   "CLONING"},
 #endif /* RTF_CLONING */
+#ifdef RTF_XRESOLVE
   {RTF_XRESOLVE,  "XRESOLVE"},
+#endif /* RTF_XRESOLVE */
 #ifdef RTF_LLINFO
   {RTF_LLINFO,    "LLINFO"},
 #endif /* RTF_LLINFO */
@@ -834,9 +836,7 @@ rtm_read_mesg (struct rt_msghdr *rtm,
 
   /* rt_msghdr version check. */
   if (rtm->rtm_version != RTM_VERSION) 
-      zlog (NULL, LOG_WARNING,
-	      "Routing message version different %d should be %d."
-	      "This may cause problem\n", rtm->rtm_version, RTM_VERSION);
+      return 0;
   
   /* Be sure structure is cleared */
   memset (dest, 0, sizeof (union sockunion));
